﻿using System;
using GettingStartedLib;

namespace JoinBoxHost
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                //此处ip修改的话,需要在客户端上面修改App.config
                var host = new Host<ICalculatorService, CalculatorService>
                {
                    BaseAddress = "http://localhost:8000/JoinBox/"
                };
                host.Build();
                host.Start();
                Console.ReadLine();
            }
            catch (Exception ce)
            {
                Console.WriteLine("发生异常:" + ce.Message);
                Console.ReadLine();
            }
        }
    }
}
